package com.hanma.bean;

public class Comments {
    private Integer id;
    private Integer uid;
    private Integer nid;
    private String nickname;
    private String comment;
    private String img;

    public Comments() {
    }

    public Comments(Integer uid, Integer nid, String nickname, String comment) {
        this.uid = uid;
        this.nid = nid;
        this.nickname = nickname;
        this.comment = comment;
    }
    public Comments(Integer uid, Integer nid, String nickname, String comment, String img) {
        this.uid = uid;
        this.nid = nid;
        this.nickname = nickname;
        this.comment = comment;
        this.img = img;
    }

    public Comments(Integer id, Integer uid, Integer nid, String nickname, String comment) {
        this.id = id;
        this.uid = uid;
        this.nid = nid;
        this.nickname = nickname;
        this.comment = comment;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Comments{" +
                "id=" + id +
                ", uid=" + uid +
                ", nid=" + nid +
                ", nickname='" + nickname + '\'' +
                ", comment='" + comment + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}
